package org.bigjava.travel.service;

import org.bigjava.travel.bean.Strategy;

import java.util.List;

/**
 * 攻略的业务逻辑层（接口）
 */

public interface StrategyService {
    public long count()throws Exception;

    public Strategy findById(Integer id)throws Exception;

    public List<Strategy> findList()throws Exception;

    public void save(Strategy strategy)throws Exception;

    public void user_save(Strategy strategy)throws Exception;

    public void update(Strategy strategy)throws Exception;

    public void deleteById(Integer id)throws Exception;

    public List<Strategy> findByPage(int currentPage, int pageSize, String query)throws Exception;

    public List<Strategy> findByPage(int currentPage, int pageSize)throws Exception;

    public long state0count()throws Exception;

    public long state1count()throws Exception;

    public long state2count()throws Exception;

}
